package com.kaver.sso.dao.service.impl;

import com.kaver.sso.dao.po.SsoLoginRecord;
import com.kaver.sso.dao.mapper.SsoLoginRecordMapper;
import com.kaver.sso.dao.service.SsoLoginRecordDao;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户登陆记录表 服务实现类
 * </p>
 *
 * @author roc
 * @since 2021-07-26
 */
@Service
public class SsoLoginRecordDaoImpl extends ServiceImpl<SsoLoginRecordMapper, SsoLoginRecord> implements SsoLoginRecordDao {

    @Override
    public SsoLoginRecord queryByticket(String ticket) {
        SsoLoginRecord query = new SsoLoginRecord();
        query.setTicket(ticket);
        QueryWrapper<SsoLoginRecord> queryWrapper = new QueryWrapper<SsoLoginRecord>(query);
        return this.getOne(queryWrapper);
    }

}
